<p class="Paragraph"><help:to-be-embedded Eid="bedingtetext" xmlns:help="http://openoffice.org/2000/help"><help:help-text value="visible">Choose <span style="font-weight:bold;">Conditional Formatting</span> to define format styles depending on certain conditions.</help:help-text></help:to-be-embedded> If a style was already assigned to a cell, it remains unchanged. The style entered here will be then evaluated. You can enter 3 conditions, which query the contents of cell values or formulas. The conditions are queried from 1 to 3. If the condition 1 matches, the defined style will be used. Otherwise, the condition 2 will be queried and the defined style used. If this style does not match, the condition 3 will be queried.</p>
<p class="Paragraph">In the <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> samples, you will find the document {installpath}/share/samples/english/spreadsheets/biorhythm.sdc. Conditional formatting has been used in the "Details" table contained in this document.</p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">Check this box to define a condition.</help:help-text> Check the boxes corresponding to each condition and enter the respective condition. To close the dialog, click <span class="T1">OK</span>.</p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">Specify if the conditional formatting should be dependent on a cell value or a formula.</help:help-text> If you select a formula as a reference, the combo box Cell Value Condition will be displayed on the right of the Cell value/Formula field. If the condition is "Is formula" enter a cell reference; if the cell reference is a value other than zero, the condition will match.</p>
<p class="Head2"><help:help-id value="SC_LISTBOX_RID_SCDLG_CONDFORMAT_LB_COND1_2" xmlns:help="http://openoffice.org/2000/help"/><help:help-id value="SC_LISTBOX_RID_SCDLG_CONDFORMAT_LB_COND2_2" xmlns:help="http://openoffice.org/2000/help"/><help:help-id value="SC_LISTBOX_RID_SCDLG_CONDFORMAT_LB_COND3_2" xmlns:help="http://openoffice.org/2000/help"/>Cell Value Condition</p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">Choose a condition for the format to be applied to the selected cells.</help:help-text></p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">Choose the style to be applied if the specified condition matches.</help:help-text></p>
<p class="Paragraph"><help:help-text value="hide" xmlns:help="http://openoffice.org/2000/help">Enter a reference, value or formula here.</help:help-text> Enter a reference, value or formula in the parameter field (or in both parameter fields if you have selected a condition that requires two parameters). You can also enter formulas containing relative references.</p>
<p class="Paragraph">Once the parameters have been defined, the condition is complete. It may appear, for example, as:</p>
<p class="Paragraph">Cell value is equal 0: Cell style Null value (You must have already defined a cell style with this name before assigning it to a condition).</p>
<p class="Paragraph">Cell value is between $B$20 and $B$21: Cell style Result (The corresponding value limits must already exist in cells B20 and B21)</p>
<p class="Paragraph">Formula is SUM($A$1:$A$5)=10: Cell style Result (The selected cells are formatted with the Result style if the sum of the contents in cells A1 to A5 is equal to 10.</p>